﻿using TbShop.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TbShop.Web.Areas.Admin.Models
{
    public class ListViewModels<T> where T : DataEntityBase
    {
        public ListViewModels()
        {
            this.PageInfo = new PageInfo(HeinQi.Framework.Common.SystemParameterHelper.GetSystemParameter<int>(Constants.SystemParameterKeys.AdministratorDefaultPageSize));
            this.Datas = new List<T>();
        }
        public IEnumerable<T> Datas { set; get; }

        public PageInfo PageInfo { set; get; }
    }
}